﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.OleDb;

namespace JobCreateInDocs2_WinForms_Probe
{
    public static class DBHelper
    {
        public static DateTime MakeDateTimeFromAxaptaFields(DateTime dt, int seconds)
        {
            int hourTmp = (seconds / 3600);
            int minTmp = (seconds - hourTmp * 3600) / 60;
            int secTmp = (seconds - hourTmp * 3600 - minTmp * 60);
            return new DateTime(dt.Year, dt.Month, dt.Day, hourTmp, minTmp, secTmp);
        }
    }
}
